package gatperdut.chato.constants;

import gatperdut.chato.model.Chato.Constant.Gender;

public final class CSConstantsString {

    public final static String NEWLINE = System.getProperty( "line.separator" );

    public static enum Possessive {
        YOUR("your"), HER("her"), HIS("his"), ITS("its");

        private Possessive( String value ) {
            this.value = value;
        }

        private final String value;

        public final String getValue() {
            return value;
        }
    }

    public static Possessive getPossessiveForGender( Gender g ) {
        switch ( g ) {
        case FEMALE:
            return Possessive.HER;
        case MALE:
            return Possessive.HIS;
        case UNKNOWN:
            return Possessive.ITS;
        default:
            throw new IllegalArgumentException( "Getting possessive for unknown gender." );
        }
    }

}
